package com.spark.invoicings.spark_enum;

public enum SparkEnum {
    LOGIN_SUCCESS(200,"登录成功"),
    LOGIN_ERROR(201,"用户不存在"),
    LOGIN_EXCEPTION(400,"账号或密码错误,请重新登录"),
    SAVE_EXCEPTION(401,"保存失败,请核对数据重新添加"),
    UPDATE_EXCEPTION(402,"修改失败,请重试"),
    DELETE_EXCEPTION(403,"删除失败"),
    IMAGE_SAVE_EXCEPTION(404,"文件异常,请重试");
    private int code;
    private String msg;
    SparkEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
